package com.proxy.proxy2;

import com.proxy.IHello;

public class ClassProxyMain {
    public static void main(String[] args) {
        IHello hello = new HelloImp();
        ClassProxy proxy = new ClassProxy();
        IHello hello1 = (IHello) proxy.getProxy(hello);
        hello1.say("2222");
    }
}
